//
//  SYS_PublicPopView.h
//  System_App
//
//  Created by 魏配军 on 2017/11/29.
//  Copyright © 2017年 czy001. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SYS_PublicButton.h"

@protocol SYS_PublicPopViewDelegete <NSObject>
/*****************按钮的tag  左边按钮（1000）右边按钮（1001）*************************/
-(void)btnindex:(int)index ;
@end

@interface SYS_PublicPopView : UIImageView<CAAnimationDelegate>
/*****************标题*************************/
@property(nonatomic,strong)UILabel *title;
/*****************标题下文本*************************/
@property(nonatomic,strong)UILabel *message;
/*****************左边按钮*************************/
@property(nonatomic,strong)SYS_PublicButton *cancelbtn;
/*****************右边按钮*************************/
@property(nonatomic,strong)SYS_PublicButton *surebtn;
/*****************背景图层*************************/
@property(nonatomic,strong)UIView *view;
/*****************代理*************************/
@property (nonatomic,weak) id<SYS_PublicPopViewDelegete> delegate;

/*
 *******************************************************************
 str：标题
 str1：标题下文本（若无标题下文本，则传nil或@“”）
 cancel：底部左边按钮的标题 tag为1000
 other：底部右边按钮的标题  tag为1001
 iconNameStr：弹框的凸出的icon
 cancelImageStr：左边按钮的图片
 sureImageStr：右边按钮的图片
 
 注：若无按钮则传nii，有按钮就需要传图片，弹框的frame的height由弹框类型决定
例： 初始化
    SYS_PublicPopView *popView = [[SYS_PublicPopView alloc] initwithtitleText:@"清除缓存" withMessage:@"确定清除缓存?" andcancelbtn:@"取消" andotherbtn:@"确定" withIconStr:@"SYS_Public_trash1" andCancelBtnImageNameStr:@"SYS_Public_quxiao" andSureBtnImageNameStr:@"SYS_Public_queding"];
 [popView show];
 
 ****************************************************************************
 */
-(void)initwithtitle:(NSString *)str andmessage:(NSString *)str1 andcancelbtn:(NSString *)cancel andotherbtn:(NSString *)other withIconStr:(NSString *) iconNameStr andCancelBtnImageNameStr:(NSString *) cancelImageStr  andSureBtnImageNameStr:(NSString *)sureImageStr;


-(id)initwithtitleText:(NSString *)titleText withMessage:(NSString *)messageText andcancelbtn:(NSString *)cancel andotherbtn:(NSString *)other withIconStr:(NSString *) iconNameStr andCancelBtnImageNameStr:(NSString *) cancelImageStr  andSureBtnImageNameStr:(NSString *)sureImageStr;

/*****************显示出弹出框*************************/
-(void)show;
/*****************隐藏弹出框*************************/
-(void)dismmis1;

@end
